Skip to content

Add JGroups integration for Spring Cloud Bus - #3299

Closed
yashdotdev13 wants to merge 2 commits into
spring-cloud:mainfrom
yashdotdev13:issue-272-jgroups-integration
Closed

yashdotdev13 wants to merge 2 commits into
spring-cloud:mainfrom
yashdotdev13:issue-272-jgroups-integration

Conversation

@yashdotdev13

Copy link
Copy Markdown
Contributor

Overview

This PR adds JGroups support to Spring Cloud Bus, allowing applications to use JGroups as a transport for propagating RemoteApplicationEvents between cluster members.

Changes

  • Add a new spring-cloud-starter-bus-jgroups module.
  • Add JGroups dependency management with JGroups 5.5.7.Final.
  • Implement JGroupsBusBridge for sending and receiving Bus events over JGroups.
  • Add configurable JGroups cluster name through spring.cloud.bus.jgroups.cluster-name.
  • Add JGroups auto-configuration with appropriate Bus and classpath conditions.
  • Back off when another BusBridge is already configured.
  • Register the JGroups auto-configuration through AutoConfiguration.imports.
  • Add tests covering:
    • JGroups Bus bridge creation.
    • BusBridge back-off behavior.
    • Event serialization and transmission.
    • Event deserialization and delegation.
    • Configured cluster name.
    • Channel lifecycle/close behavior.

Configuration

The default cluster name is:

spring:
  cloud:
    bus:
      jgroups:
        cluster-name: spring-cloud-bus

Signed-off-by: 98001yash <yashchauhan.gaya@gmail.com>
@olegz

olegz commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

@yashdotdev13 Any chance you can provide a documentation for it, given that this is a new feature, new module etc. . .?

@yashdotdev13

yashdotdev13 commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor Author

@olegz Thanks for the feedback! I will add documentation covering the JGroups configuration, cluster setup, and how to use the new starter.

Signed-off-by: 98001yash <yashchauhan.gaya@gmail.com>
@yashdotdev13

yashdotdev13 commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor Author

@olegz I have added a dedicated documentation page for JGroups support, documented the cluster-name configuration property, and included the new page in the Bus documentation navigation.

@olegz olegz closed this in 7c08df2 Oct 27, 2026
@olegz olegz added this to the 5.1 milestone Oct 27, 2026
@olegz olegz added the feature label Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants